package com.shuma.auth.controller.exception;

import java.io.Serializable;

/**
 * @description 和前端约定返回的异常信息模型
 */
public class RestErrorResponse implements Serializable {

    private String message;

    private Integer code;

    public RestErrorResponse(String message) {
        this.message = message;
    }

    public RestErrorResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getErrMessage() {
        return message;
    }

    public void setErrMessage(String message) {
        this.message = message;
    }
}
